package o;

import android.net.Uri;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

class bbt implements bbx {
    private final String ˊ;

    bbt(String str) {
        this.ˊ = str;
    }

    public File ॱ(Uri uri) {
        String encodedPath = uri.getEncodedPath();
        int indexOf = encodedPath.indexOf(47, 1);
        if ("externalapkfile".equals(Uri.decode(encodedPath.substring(1, indexOf)))) {
            try {
                return new File(Uri.decode(encodedPath.substring(indexOf + 1))).getCanonicalFile();
            } catch (IOException e) {
                throw new IllegalArgumentException("wisedist: Failed to resolve canonical path for");
            }
        }
        throw new IllegalArgumentException("unsupport tag");
    }

    public List<String> ˊ() {
        List arrayList = new ArrayList(2);
        arrayList.add("apk");
        arrayList.add("apk.1");
        return arrayList;
    }
}
